package com.atguigu.service;

import com.atguigu.entity.UserAccount;
import com.atguigu.result.RetVal;
import com.atguigu.vo.AccountLockVo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 用户账户 服务类
 * </p>
 *
 * @author Joe
 * @since 2024-12-02
 */
public interface UserAccountService extends IService<UserAccount> {

    //锁定账户金额
    RetVal checkAndLock(AccountLockVo accountLockVo);

    //扣减锁定金额
    void deductLockAccount(String orderNo);

    //解锁账户锁定金额与账户锁
    void unLockAccount(String orderNo);

    void addUserAccount(Long userid);
}
